package com.ikaros.freemarker;

import com.alibaba.fastjson.JSON;

import java.util.Map;

/**
 * @author: 月光伴奏
 * @Date 2017-10-27 10:02
 */
public class Json2Json {

    public static void main(String[] args) {
        String json="｛NAME:\"张三\"｝";
        Map<String,String> value = JSON.parseObject(json,Map.class);
        value.put("zzmm","newValue");//改变zzmm的值
        JSON.toJSONString(value);//重新转成json字符串，｛“name”:"张三","age":"20","xb":“男”,"zzmm":"newValue"｝
    }
}
